import 'dart:convert';
/// token : "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJtIjoiMTQ4ODQ3MDUwODU0NTMzMTIwMCIsInQiOjE2NDQxMzU1NjE1NDMsImlhdCI6MTY0NDEzNTU2MSwiZXhwIjoxNjQ0NzQwMzYxfQ.mjY0hrpkW7cs4O8BzpcKarT7gZwiqdASTr6nNe13exQ"
/// m : {"name":"往事如风","phone":"18866259537","gender":1}

MemberInfo memberInfoFromJson(String str) => MemberInfo.fromJson(json.decode(str));
String memberInfoToJson(MemberInfo data) => json.encode(data.toJson());
class MemberInfo {
  MemberInfo({
      String? token,
    String? id,
      M? m,}){
    _token = token;
    _m = m;
}

  MemberInfo.fromJson(dynamic json) {
    _token = json['token'];
    _m = json['m'] != null ? M.fromJson(json['m']) : null;
  }
  String? _token;
  M? _m;

  String? get token => _token;
  M? get m => _m;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['token'] = _token;
    if (_m != null) {
      map['m'] = _m?.toJson();
    }
    return map;
  }

}

/// name : "往事如风"
/// phone : "18866259537"
/// gender : 1

M mFromJson(String str) => M.fromJson(json.decode(str));
String mToJson(M data) => json.encode(data.toJson());
class M {
  M({
      String? name, 
      String? phone, 
      int? gender, String? id}){
    _name = name;
    _phone = phone;
    _gender = gender;
    _id = id;
}

  M.fromJson(dynamic json) {
    _name = json['name'];
    _phone = json['phone'];
    _gender = json['gender'];
    _id = json['id'];
  }
  String? _name;
  String? _phone;
  int? _gender;
  String? _id;

  String? get name => _name;
  String? get phone => _phone;
  int? get gender => _gender;
  String? get id => _id;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['name'] = _name;
    map['phone'] = _phone;
    map['gender'] = _gender;
    map['id'] = _id;
    return map;
  }

}